package com.googlecode.nls4j;

/**
 * A KeyValuePair object is an NlsKey which has reference to it's value. These
 * keys are used in conjunction with {@linkplain KeyValuePairStorage} and are
 * best suitable for desktop applications, in which locale is changed rarely. A
 * usage example can be found in the documentation for
 * {@linkplain CurrentBundle}.
 * 
 * @author Andrey Pavlenko
 */
public interface KeyValuePair<V> extends NlsKey<V> {

    /**
     * Returns the resource identified by this key.
     */
    public V getValue();

    /**
     * Set the resource identified by this key.
     */
    public void setValue(V value);
}
